package com.base.po.voip;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ApiinfoesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApiinfoesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMemoIsNull() {
            addCriterion("Memo is null");
            return (Criteria) this;
        }

        public Criteria andMemoIsNotNull() {
            addCriterion("Memo is not null");
            return (Criteria) this;
        }

        public Criteria andMemoEqualTo(String value) {
            addCriterion("Memo =", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotEqualTo(String value) {
            addCriterion("Memo <>", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThan(String value) {
            addCriterion("Memo >", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThanOrEqualTo(String value) {
            addCriterion("Memo >=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThan(String value) {
            addCriterion("Memo <", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThanOrEqualTo(String value) {
            addCriterion("Memo <=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLike(String value) {
            addCriterion("Memo like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotLike(String value) {
            addCriterion("Memo not like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoIn(List<String> values) {
            addCriterion("Memo in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotIn(List<String> values) {
            addCriterion("Memo not in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoBetween(String value1, String value2) {
            addCriterion("Memo between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotBetween(String value1, String value2) {
            addCriterion("Memo not between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andJsondataIsNull() {
            addCriterion("JsonData is null");
            return (Criteria) this;
        }

        public Criteria andJsondataIsNotNull() {
            addCriterion("JsonData is not null");
            return (Criteria) this;
        }

        public Criteria andJsondataEqualTo(String value) {
            addCriterion("JsonData =", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataNotEqualTo(String value) {
            addCriterion("JsonData <>", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataGreaterThan(String value) {
            addCriterion("JsonData >", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataGreaterThanOrEqualTo(String value) {
            addCriterion("JsonData >=", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataLessThan(String value) {
            addCriterion("JsonData <", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataLessThanOrEqualTo(String value) {
            addCriterion("JsonData <=", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataLike(String value) {
            addCriterion("JsonData like", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataNotLike(String value) {
            addCriterion("JsonData not like", value, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataIn(List<String> values) {
            addCriterion("JsonData in", values, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataNotIn(List<String> values) {
            addCriterion("JsonData not in", values, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataBetween(String value1, String value2) {
            addCriterion("JsonData between", value1, value2, "jsondata");
            return (Criteria) this;
        }

        public Criteria andJsondataNotBetween(String value1, String value2) {
            addCriterion("JsonData not between", value1, value2, "jsondata");
            return (Criteria) this;
        }

        public Criteria andReturndataIsNull() {
            addCriterion("ReturnData is null");
            return (Criteria) this;
        }

        public Criteria andReturndataIsNotNull() {
            addCriterion("ReturnData is not null");
            return (Criteria) this;
        }

        public Criteria andReturndataEqualTo(String value) {
            addCriterion("ReturnData =", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataNotEqualTo(String value) {
            addCriterion("ReturnData <>", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataGreaterThan(String value) {
            addCriterion("ReturnData >", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataGreaterThanOrEqualTo(String value) {
            addCriterion("ReturnData >=", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataLessThan(String value) {
            addCriterion("ReturnData <", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataLessThanOrEqualTo(String value) {
            addCriterion("ReturnData <=", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataLike(String value) {
            addCriterion("ReturnData like", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataNotLike(String value) {
            addCriterion("ReturnData not like", value, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataIn(List<String> values) {
            addCriterion("ReturnData in", values, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataNotIn(List<String> values) {
            addCriterion("ReturnData not in", values, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataBetween(String value1, String value2) {
            addCriterion("ReturnData between", value1, value2, "returndata");
            return (Criteria) this;
        }

        public Criteria andReturndataNotBetween(String value1, String value2) {
            addCriterion("ReturnData not between", value1, value2, "returndata");
            return (Criteria) this;
        }

        public Criteria andUsetimeIsNull() {
            addCriterion("UseTime is null");
            return (Criteria) this;
        }

        public Criteria andUsetimeIsNotNull() {
            addCriterion("UseTime is not null");
            return (Criteria) this;
        }

        public Criteria andUsetimeEqualTo(Date value) {
            addCriterion("UseTime =", value, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeNotEqualTo(Date value) {
            addCriterion("UseTime <>", value, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeGreaterThan(Date value) {
            addCriterion("UseTime >", value, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UseTime >=", value, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeLessThan(Date value) {
            addCriterion("UseTime <", value, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeLessThanOrEqualTo(Date value) {
            addCriterion("UseTime <=", value, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeIn(List<Date> values) {
            addCriterion("UseTime in", values, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeNotIn(List<Date> values) {
            addCriterion("UseTime not in", values, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeBetween(Date value1, Date value2) {
            addCriterion("UseTime between", value1, value2, "usetime");
            return (Criteria) this;
        }

        public Criteria andUsetimeNotBetween(Date value1, Date value2) {
            addCriterion("UseTime not between", value1, value2, "usetime");
            return (Criteria) this;
        }

        public Criteria andDatastatusIsNull() {
            addCriterion("DataStatus is null");
            return (Criteria) this;
        }

        public Criteria andDatastatusIsNotNull() {
            addCriterion("DataStatus is not null");
            return (Criteria) this;
        }

        public Criteria andDatastatusEqualTo(Boolean value) {
            addCriterion("DataStatus =", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotEqualTo(Boolean value) {
            addCriterion("DataStatus <>", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusGreaterThan(Boolean value) {
            addCriterion("DataStatus >", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("DataStatus >=", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusLessThan(Boolean value) {
            addCriterion("DataStatus <", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusLessThanOrEqualTo(Boolean value) {
            addCriterion("DataStatus <=", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusIn(List<Boolean> values) {
            addCriterion("DataStatus in", values, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotIn(List<Boolean> values) {
            addCriterion("DataStatus not in", values, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusBetween(Boolean value1, Boolean value2) {
            addCriterion("DataStatus between", value1, value2, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("DataStatus not between", value1, value2, "datastatus");
            return (Criteria) this;
        }

        public Criteria andUseipIsNull() {
            addCriterion("UseIp is null");
            return (Criteria) this;
        }

        public Criteria andUseipIsNotNull() {
            addCriterion("UseIp is not null");
            return (Criteria) this;
        }

        public Criteria andUseipEqualTo(String value) {
            addCriterion("UseIp =", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipNotEqualTo(String value) {
            addCriterion("UseIp <>", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipGreaterThan(String value) {
            addCriterion("UseIp >", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipGreaterThanOrEqualTo(String value) {
            addCriterion("UseIp >=", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipLessThan(String value) {
            addCriterion("UseIp <", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipLessThanOrEqualTo(String value) {
            addCriterion("UseIp <=", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipLike(String value) {
            addCriterion("UseIp like", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipNotLike(String value) {
            addCriterion("UseIp not like", value, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipIn(List<String> values) {
            addCriterion("UseIp in", values, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipNotIn(List<String> values) {
            addCriterion("UseIp not in", values, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipBetween(String value1, String value2) {
            addCriterion("UseIp between", value1, value2, "useip");
            return (Criteria) this;
        }

        public Criteria andUseipNotBetween(String value1, String value2) {
            addCriterion("UseIp not between", value1, value2, "useip");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}